package com.example.mybroadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class MyBroadcastReceiver2 extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Log.i("life", "MyBroadcastReceiver2接收到了求救广播事件");
        String action = intent.getAction();
        if(action.equals("Three_Broadcast")){
            Log.i("life", "MyBroadcastReceive2 处理 Three_Broadcast 广播事件");
        }else if(action.equals("Three_Broadcast1")){
            Log.i("life", "MyBroadcastReceive2 处理 Three_Broadcast1 广播事件");
        }else{
            assert false;
        }
    }
}
